package per.hx.bs.entity.sys;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;

/**
 * @author HuXing
 * @date 2018/3/21  22:03
 */
@TableName("sys_role_menu")
public class SysRoleMenuDO extends BaseEntity<SysRoleMenuDO> {
    @TableId
    private Long id;
    private Long roleId;
    private Long menuId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    @Override
    public String toString() {
        return "RoleMenuDO{" +
                "id=" + id +
                ", roleId=" + roleId +
                ", menuId=" + menuId +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public SysRoleMenuDO(Long roleId, Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }

    public SysRoleMenuDO() {
    }
}
